package com.bristua.mall.common.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.biz.QueryIndexCategoryBiz;
import com.bristua.mall.common.utils.HandleResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/5/5.
 */
@RestController
@Api(value="首页查询类目",tags={"首页查询类目"})
public class QueryIndexCategoryController {
    @Autowired
    private QueryIndexCategoryBiz queryIndexCategoryBiz;
    @PostMapping("/get/app/index/category")
    @ApiOperation(value="首页查询类目")
    public Result queryIndexCategory(){
        return HandleResultUtil.querySuccessResult(queryIndexCategoryBiz.queryIndexCategory());
    }
}

